<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
	#headTag('短消息_会员中心')
<script type="text/javascript">
KE.show({
	id : 'content',
	urlType:'domain',
	items: ['link', 'unlink',
'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold',
'italic', 'underline', 'strikethrough', 'removeformat', 'image'],
	width:'500px',
	height:'200px',
	resizeMode:0
});
</script>
</head>
<body>
<div id="page">
#parse("default/_header.htm")
<div id="middle">
<div id="main_wrap">
	<div id="main">
		#topbar()
		<div class="center">
			<h1>回复短消息</h1>
			<div class="content">
				<table class="reply_message">
				<tr>
					<th class="th">发送人:</th>
					<td class="td">
						<div class="photo">
						<img src="$url.base${message.sender.extInfo.photoPath}"/>
						<a href="$url.base/member/${message.sender.id}/profile">${message.sender.nickname}</a>
						</div>
					</td>
				</tr>
				<tr>
					<th class="th">发送时间:</th>
					<td class="td">$utils.dateFormat('yyyy-MM-dd',$message.sendTime)</td>
				</tr>
				<tr>
					<th class="th">内容:</th>
					<td class="td">${message.content}</td>
				</tr>
				#if($message.receiver==$model.CUA)
					<tr>
						<th class="th">回复:</th>
						<td class="td"><textarea id="content" name="content"></textarea></td>
					</tr>
					<tr>
						<th class="th"></th>
						<td class="td"><button onclick="forum.op.sendMessage(${message.sender.id}, '${header.Referer}')">回复</button><button onclick="location.href='${header.Referer}'">返回</button></td>
					</tr>
				#else
					<tr>
						<th class="th"></th>
						<td class="td"><button onclick="location.href='$utils.header.get('Referer')'">返回</button></td>
					</tr>
				#end
				</table>
				#if($records.size()>0)
					<hr class="seperator"/>
					<table class="message_record">
						<tr>
							<td colspan="2"><h3 class="title">消息记录</h3></td>
						</tr>
						#foreach($record in $records)
						<tr>
							<th>
								<div class="photo">
								<img src="$url.base${message.sender.extInfo.photoPath}"/>
								<a href="$url.base/member/${message.sender.id}/profile">${message.sender.nickname}</a>
								</div>
							</th>
							<td valign="top">
							${record.content}
							<div class="time">$utils.dateFormat('yyyy-MM-dd HH:mm', $record.sendTime)</div>
							</td>
						</tr>
						#end
					</table>
				#end
			</div>
		</div>
	</div>
</div>
#parse("default/center/_sidebar.htm")
</div>
</div>
#parse("default/_footer.htm")
</body>
</html>